premliminary collision detection