remove useless classes