only add headers if some rows exist