modified the assembler sample