layout and crypto structure