fixed insn primitive functions