first value iteration