made ruby version of uniques