use local variable for vector size
use local