updaated template file