changed interface of Collision class