create functions file