debounce brightness implemented but not debugged