more error checking standardization