range selector working