delete unused memoize function