added debounce to input model