fixed relationship logic again

fixed relationship logic again