added update map procedure