draining the system