handle logic for line lengths with 0