modifying template to be unique id field type