add function definition in header file