implemented highlight function