please use { |i| ... } syntax instead of type layout w/ end