Updated the length of lines