function with return statement