Solved collision problem