updated index to fix bugs