use class variable for checking class