minified usable version for personal refrence