edited the removeRealtion function that was given incorrect results