set up text matching