made window shift time into constant