update before leave OPI