set index =0