fixed memorize to memoize.