private void fillMaxTotalScores() {
    	int numEntries = entryList.size();
    	Vector cellList = new Vector(16);
    	rootPane.getAttributeCells(cellList);
        double[] accumulatedRatios = new double[numEntries * noOfUsers];
        int j = 0;
    	for (int i = 0; i < numEntries; i++) {//for each alternative    	
    		int users=0;
    		double avgAlternativeScore = 0;
    		String entryName = entryList.get(i).name;
    		for(IndividualEntryMap e : chart.listOfEntryMaps.values()){//for each user
    			for (Iterator it = cellList.iterator(); it.hasNext();) {//for each attribute
    				AttributeCell cell = (AttributeCell) it.next();
         			double weight = e.getEntryWeight(cell.getName(), entryName);
         			double or = cell.getHeightFromAttributeMap(e.username,cell.getName());///chart.heightScalingConstant;
                    accumulatedRatios[j] += or * weight;
    			}    			
    			String srcKey = e.username;
				double srcValue = accumulatedRatios[j];
				
//				maxTotalScores2.put(srcKey, srcValue);
				if(maxTotalScores.containsKey(srcKey)){
					double destValue = maxTotalScores.get(srcKey);
					if(destValue <= srcValue){
						maxTotalScores.remove(srcKey);
						topAltforUsers.remove(srcKey);
						
						maxTotalScores.put(srcKey, srcValue);   
						topAltforUsers.put(srcKey, entryName);
					}
				}else{
					maxTotalScores.put(srcKey, srcValue);
					topAltforUsers.put(srcKey, entryName);
				}
                avgAlternativeScore += accumulatedRatios[j];
                j++;
                users++;
    		}
    		averageTotalScores.put(entryName, avgAlternativeScore/users);    		
    	}
		
    	
    	for(IndividualAttributeMaps a : chart.listOfAttributeMaps){
    		for(Map.Entry<String, String> m : topAltforUsers.entrySet()){
    			if(a.userName.equals(m.getKey())){
    				a.setTopAlternative(m.getValue());
    			}
    		}
//    		System.out.println(a.userName+" "+a.topAlternative);
    	}
//		System.out.println(maxTotalScores2);
//    	System.out.println(averageTotalScores);
//    	System.out.println(topAltforUsers);
	}