merging functions into a single file