added function header file