adding segment average files