updated the index generator template