added RMA calculation