now truncates sentences to maxlen