added synchronization to migration