added templates for B and C