basic incremental updating for value function