exchange ConcurrentBag with ConcurrentDictionary in two function:CheckIfStayOverTime,CheckIfStayOverTime2