rearranges templates to use inheritence