remove errors from data file