added HeaderWords algorithm