implement getRange using an iterator