Changing violate method