refactored Layout Engine