add another method to calculate the intersection