improved queue