error checking fix