vector loop method3 method4