if I was able to provide links outside mpgh, I'd be able to show the location of where that mid function was posted before mpgh. Plus that code is so simple anything your read online to teach you how to create midfunctions would bet he exact same thing, but credit donoob clearly because this snippet was his code copy and pasted with parems adding in.