remove bad case classes