do a class check first