generating type member accessors