each_key and delete_if