fixed COM. variable renames, removed dud line, erode 3 times