began error checking