alters some of the logic of highlighting sections of text, though it is still broken