added collision detection pde