merging - sync func
merging