fixing issue with dupes