refactoring linkheader