refined render cells method to support range mode