created the return

I created the return in the function so I can get the value out of the
function.