modified popping queue. Ran for 20 mins without error