moved ve_idx -> idx