added RIE and saved figures.