average time and prevent going back