make positions in place distinct