set unique indices