new layout
flipped math, properly doing ratios now, freq rather than period