extract layout