wouldn't be better go call getSelection() here?