fixed ex5b/c print-out issues.