removed deprecated has_key