rearranged DIM templates