has_key is depricated