using formatted output