removing obsolete relationships