running it works fine! need to implement limit to number of frequency points though.