edits to summary analysis code- LG