thank you, great explainThe resistor and capacitor result in a relatively slowly changing waveform. As a result, the circuit does not pass through the transition region (which is rather poorly defined to begin with) quickly. The noise in the signal can result in the output of the logic gate flailing (switching back and forth many times which it should only change once).