update method definition