added selected() method