removing the useless classes