improving freqanalysis and source analysis