update locations structure