updated threading call