fixed prefered_state variable