add public update method