getIndex of singly-list done