x​|v|​x|​i by algo