minification functionality
fix bug on error-message
doc for min