moving averages debuging