simplified by delete_keys