correcting the template file