added getQueue method