written uniques function