code preparation for microstate measurement per tbb thread id