updating structures