modify minify method