more updates to summary generation sub