Rights of the child A/RES/71/177 education and social services, to consider implementing voluntary repatriation, reintegration or resettlement where appropriate and feasibl e, family tracing and family reunification, in particular for children who are unaccompanied, and to ensure that the best interests of the child are a primary consideration; 27. Calls upon all States to ensure, for children belonging to minorities and vulnerable groups and children in vulnerable situations, including migrant children and indigenous children, as well as children placed in alternative care and within the juvenile justice system and in detention, the enjoyment of all human rights regardless of migration status and access to health care, social services and education without discrimination and to ensure that all such children, in particular unaccompanied migrant children, those separated from their parents and primary caregivers and those who are victims of violence and exploitation, receive appropriate protection and assistance; 28. Calls upon States to ensure that migrant children in need of protection, particularly unaccompanied migrant children and those separated from their parents or primary caregivers, are, giving primary consideration at all times to the best interests of the child, referred to the relevant national child protection authorities and other relevant authorities; Children and the administration of justice 29. Reaffirms paragraphs 49 to 57 of its resolution 68/147, and calls upon all States to respect and protect the rights of children alleged to have infringed or recognized as having infringed penal law, as well as children of persons alleged to have infringed or recognized as having infringed penal law; 30. Encourages continued regional and cross-regional efforts, the sharing of best practices and the provision of technical assistance in the field of juvenile justice; 31. Encourages States to develop and implement a comprehensive juvenile justice policy to protect and address the needs of children in contact with the law, with a view to promoting, inter alia, a commitment to improving the quality of education available to children placed in alternative care and within the juvenile justice system, crime prevention programmes, the use of alternative measures, such as diversion, restorative justice and community-based programmes that focus on the rehabilitation and reintegration of the child, and ensuring compliance with the principle that deprivation of liberty of children should be used only as a measure of last resort and for the shortest appropriate period of time, as well as to avoid, wherever possible, the use of pretrial detention for children; Prevention and eradication of the sale of children, child prostitution and child pornography 32. Reaffirms paragraph 58 of its resolution 68/147, and calls upon all States to prevent, criminalize, prosecute and punish all forms of the sale and trafficking of children, including for the purposes of removal of organs of the child for profit, child slavery, forced labour and the sexual exploitation of children, including child prostitution, child pornography and other child sexual abuse material, with the aim of eradicating those practices and the use of the Internet and other information and communications technologies for these purposes, to combat the existence of a market that encourages such criminal practices and take measures to eliminate the demand that fosters them, as well as to address the rights and needs of victims effectively, including universal access to comprehensive social, physical and mental 9/19

Select target paragraph3