square wave bounce