added part of second inventory.s. process