implementation of minify