fixed the inconsistent formatting

both console and file output should be the same