I've been going back and forth between a coworker over which of the following is correct and I thought that maybe this SE could help.
I have an application with the following message:
The X algorithm uses color variance to attempt to find a border in the image, surrounds that border using an ellipse, and fits it to a standard size.
However, my coworker says this is grammatically incorrect and it should be:
The X algorithm uses color variance to attempt to find a border in the image, surround that border using an ellipse, and fit it to a standard size.
My coworker says that the second is correct since the subject the verb is referring to is "color variance", but I disagree, the intended subject should be "X algorithm."
Which of the two examples is more correct? Or perhaps the sentence should should be changed to reduce confusion?