selecting and deselecting