adding collision for y