maybe this should take a parameter for which frequency to process?