added error for queues