update formula