constructor fns for opcodes