removes mistakes