added planning ability to change the state