fix metadata bug in createNewItem. bring back memoize.