made promptDelay global