use a temporary variable for the header and footer attributes for easier debugging.