non-duplicate values in an array done