private void sampleFreqUpdate(Status status) {
		long duration = TwitterCrawler.Timer.duration();
		long temp = duration/Settings.sample;
		int index = (int) temp;
		int maxIndex = (int) (Settings.timer/Settings.sample+1);
		
		if(index<maxIndex){
			//System.out.println(duration+"ms@"+index);
			HashtagEntity[] tags = status.getHashtagEntities();
			for (HashtagEntity t: tags) {
				String hashtag = "#"+t.getText().toLowerCase();
				
				/*if(index <= maxIndex){
					int val = 1;
					if (Settings.TFHashtagFreq.containsKey(hashtag)) {
						val += Settings.TFHashtagFreq.get(hashtag);
					}
					Settings.TFHashtagFreq.put(hashtag, val);
				}*/
				
				double[] freq;
				if (Settings.TFHashtagFreq_sample.containsKey(hashtag)) {
					freq = Settings.TFHashtagFreq_sample.get(hashtag);
					freq[index]+=1;
					//System.out.println(hashtag+": "+index+"th freq is "+freq[index]+"###"+(int) (Settings.timer/Settings.sample));
				}else{
					freq = new double[maxIndex];
					for(int i =0; i<freq.length; i++) freq[i] =0;
					freq[index] = 1;
					//System.out.println(hashtag+": "+index+"th freq is "+freq[index]+"@: "+duration+"/"+Settings.sample);
				}
				Settings.TFHashtagFreq_sample.put(hashtag, freq);
			
				/*double[] val = Settings.TFHashtagFreq_sample.get(hashtag);
				String s="";
				for(double d:val)	s+=d+", ";
				System.out.println("hashtag {"+hashtag+"} got freq {"+s+"}");*/
			}
		}
	}