Update function all done