improve RM example