add method to get selection ranges
create