corrected bug in figure 1