adding iterative method try to solve the xcor windowing effect