cleaned up summary creation code so more effecient