split functions in .h files