speed up ~for/vector