ugly code by remove-class directive works