moving state into sentence_state