adding the header addition and deletion code