use v_select instead of selecting in a loop