new seq window algorithm