output formatting
solved problem 124