minimize classes