working genprog with vectors