When I put the vec_dist(my.x,your.x) in the condition, the function crahses but the program still run.