Changed union to not have duplicates. Tried to add removeTuplefromRelation but I'm getting weird linker errors...