update function vs method article