removed serialize() function