update RTC routines