hi in the function IEnumerable<int> GetNeighboringLabels(Pixel pix) for (int i = pix.Position.Y - 1; **i <= pix.Position.Y + 2** && i < _height - 1; i++) I am not sure why you used this 2 instead of 1, can you pls explain, and I tried with 1, it works too