remove cyclic relation