corrections to new plotting file