keep invalid data out of location as well as locationhierarchy