function highlighting now working