refactoring on summaries and print modules