end_r_g