removing useless classes