add serialization of subset