reference with has_key and has_value