solved collision problems