correction of plot6