make window a ring buffer -> speed for bigger window sizes