updated for RTC