add additional aggregate function sums- AtmAg() not working still