Update

update function added.