solution for swipely time window problem.