added a serialized function to turn the  into a serial string