update style of return of functions in function module