added method collide