correct first element indice from 1 to 0 and fix figure 1