merging header functions