tried to get a collision function