added attendance violated check