Complete the function of Synchronizate_data