window correctly shifts, duplicate triples not detected yet