added an struct of layout