minor changes to collision code