more error checking checking