index based accessors for records. pattern match makes use of this now.