detection collision version 1