added a minified version of the code