rewrite save ,get , set method of piece