entity and layout