implemented make thread private feature