more collision code