compare sd-lenses with edit lenses
I swapped variables i and s sometime in the past but missed a few places; fix that up now