sliding correlator working