removed sleep calls