checking of abstract classes