added ref for debounce script