bug solved in collision