implemented preparatory highlighting function