added RHS_DM_RTA function, making way for RTA code