apply attendance regularization