Update block value function