serialize node