get_summary to avoid Nonetype error