set the type when you declare the queue