get violation method