fixing figure 6