updates to resonance analysis