delete needless function that check having violations