refactoring: processHA -> lookahead