updated create inventory and history