formatted output correctly