remove unnessary fields in templates