templates rearangements