add collisionDetection