added adjustment for an extra thread