public Node findIdNode(String id, String scopeName) {
        String nodetype = "I";
		for (Scope scope : (LexParser.symtab).scopestack.subList(0, (LexParser.symtab).scopestack.size())) {

            if(scope.Scopetype.equalsIgnoreCase(scopeName)) {
               Symbol sym = scope.symbolMap.get(id);

               if( sym == null && scope.Scopetype.equalsIgnoreCase("GLOBAL")) {
				  System.out.println(" variable "+id+ " not found in anyscope in findIdNode");
				  return null;
			   }
               if(sym != null) {
                  if(sym.type.contains("INT")) nodetype = "I";
                  if(sym.type.contains("FLOAT")) nodetype = "F";
                  if(sym.type.contains("STRING")) nodetype = "S";
                  if(sym.nodePrefix == null) 
                     return new Node(id, nodetype);
                  return new Node(sym.nodePrefix, nodetype);
               }
            }             
        }
        return findIdNode(id, "GLOBAL");
     }