refactor(main) minify