dist and avg