update map method