now using weighted next state values