update map and stuff