correct threads processing