check for class