public method update