implement layout assignment in analysis