added up to memoize