method update