synchronizing every 5 seconds