print with formatting