working on serializing with sets