improved minificatio process