introduced precedence in node struct