fixing line ending glitch