reordered errors to agree with lines in source