loop through each template for this class