made header function public