implementing sequence serialize -- comple error has fixed