all classes have error checking