more work on the update method