doing index