changes in highlight function