ditch dupe function