added dupes query