fixed formatting and line endings