DBL_AVG working

the dbl_avg function is again working.