J.W. prelim collison code, not working yet