added collapsed to serialization format