optimize finding independent flushables by rotating the array on non-match. also remove unused var