rearranging templates