In some countries, prison uthorities ensure that LGBTQI prisoners access all prison programs without discrimination. Additionally, other states, such as the US provide alternative sentencing and advocacy for such people. Such options divert LGBTQI people to the plans that provide needed health and social services, rather than imprisonment. The international human rights law also establishes legal obligations on states to safeguard the rights of LGBTQI groups. They are also safeguarded through investigation, prosecution, and the provision of remedy for acts of violence and ill-treatment.