remove duplication in hilight functions with macros