modified template file