updated cell code