updated cell initialization and calculations