formalize layout