added the framework for an update method