move debounce delay time to variable