write to 3 queues