updating logic structure.