eliminate unecessary classes