add summaries and fix indent