memoize for asm was fucked up