serialize implement go a step further.