set up for collision detection