removed unused collision detect code