updates structure and adds debounce attr