Total dynamic head is the sum of the head loss within the discharge pipe due to friction and ____