rebuild all structures