updating template for self