collision code