Optimizing the Output figure 1