added the lock-in amplifier