working on structure creation and generation