handle averages