add option to plot corrected spectrum