finish my save2 and read2 function