the problem is that every entry is a different object, so a set won't remove duplicated elements anyways.