adding aggregate values and removing unsused cout statements