revert memoization conditional assignment