corrected the function call (syntax error), although this is the wrong way to clear the queue