update templates.
code style.