corrected memoize module declaration