merge func1