fixed return type for debounce()