index generation added