wavelet working