added new update method