added the result() utility method