refactoring minifier