add generating index