Treating the edge of the workpieces