added delayCounter