fixed the rmc, values seem to be right but needs proper testing