reindenting templates