corrected thread queue