changed syncing order bash