class type checking for headers