added purchase and inventory