structure and dictionary update