log the final return