adds methods to collect sets of fields either by index or by field name