using local threads variable
using local threads variable