minify and update size