also need to loop through frequency/