merging - sync func