divide in and out process