update main xx