added flexibility so that more than the freq data can be computed for more than one range (low/medium/high) at one time.