added pivot_selected() helper