added ability to specify freqs