changed supermarketQ to act as a stack for the moment