update function number