changed windowing to use more recent rather than one past