fixing line ending problems