bug due to square wave generation fixed