defined factories for layout spec