error checking in all text