discharging process