improved plot6