The variable name should be ve here, not `ve_idx` as per the currently unapproved style guide :)