checking if debounce is true or not