Change attribute tuple to hash syntax