removing busy wait