this allows us to use the same value to set the comparator and handle comparator events, making RTC easier to use