no global variable for queue