add selectRange method