update minify method