finding the errors