getIndex added to tree