find the index of list