-added debug statements for inventory assignment