the code for rrm