stage1 merge2 - add function def in header file