error when adding a new node. Need to do somehow remove the opcode from r