correct generation for Layouts