updated ASM code