intersection detection implemented