renamed index from idnex