fixed serializing