updated index generator