added public update() method