added templates for triple layouts