worked on cellRanges, properly disregards empty ranges now