added square oscillator to check timing