thread logic is changed