add an error collection to each item in the template.