now handling deletes on relatingsets properly