problem with update method