selected range works