change line_length to int