range selection working