updated square wave samples