define update method