added average calc