made some changes in function.h