starting serialize