error checking...sort of