This would be more readable if you pulled the the repeat out. It doesn't need to be inside and indented like this.