guards for layout