improve template render