minify functionality added