adding correct line endings