implemented square-sinusoid mix