update map class