syncing different arrays