fix bug init function
implement update function
tx draff version