foreach instead of vector get