moved initialization of plotter
minor refactoring