update maxlength of lines