rename and debug r1