generator to track turns