serializes