better error message setting properties
simplification