naive collision detection added