relationship with type and data