#30 add the immediate flag to debounce