minified version of the refactored version