changed templateFields to private