serialization of range object