break instead of return; no need for defaultdict