add serialize sample