Use some function in colliding