update params lineLength to maxlen