rewrote rnrm
rewrote rmrn