setHeader simplification