optimize the debouncer