fixed bug in logic
added unhandled intesection case