adding index
pointing index to right location