got the answer, printing and formatting problem