unify adding templates to a record