remove template nesting (does not work)