adding clock synchronization