added range flag