fixing line lengths