Layout Specifics

two-pass algorithm