reorganize code, make search check for intersections instead of contains
one more viz update