works for all but thread yield 2