use null instead of 0 for empty averages