removing unrequired classes