added time synchronization