removed some unnecessary code from _modifyCell.