fixing the busy wait functions
progress