bit of error checking