added oscillator for pencil