fix order of operations in calculating if inNode