corrected the templates