template and add_field