added frequency analyzer