public void setSuccessors() {	
		for(String key1: this.getActiveKeys()) {
			long min = 10000007L;
			long max = 0L;
			long temp = 10000007L;
			String result = "";
			for(String key: this.getActiveKeys()) {
				if(!this.getMember(key).isDeletable()) {
					if(getHashValue(key) < min) {
						min = getHashValue(key);
					}
					if(max < getHashValue(key)) {
						max = getHashValue(key);
					}
					if(getHashValue(key) > getHashValue(key1) && getHashValue(key) < temp) {
						temp = getHashValue(key);
					}	
				}
			}
			//if max = processId then set successor to min
			if(getHashValue(key1) == max) {
				result = getProcessIdByHash(min);
			}
			else {
				result = getProcessIdByHash(temp);
			}
			this.getMember(key1).setHashKey(getHashValue(key1));
			this.getMember(key1).setSuccessor(result);
		}
	}