update method create map