made collision detection compile