generalized oscillator