modified highlite function