debounce: adding a debouncer