update before adding external data