more stuff for collision detection