added frequencyanalysis