computing values in forward planning.