remove bad instances