update templates/macro