fixed things
added new logic using process vars to build aggregate data.