do not use deprecated has_key