formalizing layout