update
improved saving data