inventory as queue instead of list