new method for text selector.