clear unused classes