correcting line endings in initial var