change to has_key?