fixing dupe bug