moved parsing of interval summaries into loop