layout and error unification