num threads update