restricting attribute checking to hashes