review error checking