now iterating through queue as a list