cleanin up and minimizing