implemented dups