plotting and analysis changes