add indice for each keyword