altered to use log-spaced frequencies