error checking for accuracy