i2c RTC code added