memoize snippet added