only execute action after once second of pattern detection