update after add_in_main