soft_margin working