update the final return value