correct data type in relationship