make sure structure is up to date