update main cell