solved debouncing