added opcodeFunction