changed how ranges are done