public List<Integer> verifyVotes(List<Integer> u_votes, int user_id){
		List<Integer> accepted=new LinkedList<Integer>();
		Iterator<Integer> it=u_votes.listIterator();
		while(it.hasNext()){
			Integer i=it.next();
			if(!tempCandidates.contains(new Candidate("","",i))){
				continue;
			}
			if(votes.get(user_id).contains(i)){
				continue;
			}
			try{
				
				while(!write)
					wait();
				daLock.readLock().lock();;
					votes.get(user_id).add(i);
					accepted.add(i);
				daLock.readLock().unlock();
				synchronized(this){
					notifyAll();
				}
			}
			catch(InterruptedException e){
			}
			finally{
			}
		}
		return accepted;
	}