spliting the creating of ends of the tunnel