bug fix
the table format is table[index2][index1]