check name with has_key