fix unique function

oops, left out a 1 in the unique function.