added range and intervals