remove deter_intersection() internal function
code clean-up