update locations handling