use the correct intersection function