removed getOpposite function from operator nodes and cleaned up unused code.