add index to root