ASM program improvment