provide options to return range or not