structure generation code