 upper one is when the inventory is created. lower one is when the inventory is loaded from the database.