adding in looping over the frequencies we need