update line lenght