added Frequency analysis