update before adding map