approaching a working version.
use Daubechies wavelet.