add thread sample (using terminate)