state changes for map