working on cube intersect