grabbing selected text works