using square or rectangular modulation