run migrating process only once