to ensure the safety of a person; or