procedure fields in template