replace getRange with sublist