added selection mode