adding debounce