nit: space after `if` and `for` on previous three lines.