removes unused classes