added unique id for saving inventorys