loss function, violator