step 5 fix line ending