trying to fix box intersect