mods to erp_revcorr.