update() added (function version)
update() added