getting templates aligned