serialisze
fixed serialization