set conditional for null r_m