changed implementation of ric trf mhe to make more trs-friendly