fix missing header algorithm