changed param name to rangeItems