upgrading templates