added clear position function
added time to clear position
moving average intersect model