added two-oscillator functions