Maybe use unit_vec instead of x?