refactor when find range of cell