building out index