implement a sed style correction method