added stuff for header and  group