add check for correct header behaviour