remove global attributes and unnecessary header reference