sync with template