adding index to root