cleanup
cleanup
clean up
error checking functions
cleanup