0: fixes for ranges, value array