update map on spawn and out