improvements to how sentences are generated