make all the functions have a return statement within the function scope (compl. with go 1)