added waitForP and delayP